package com.li.util;

/**
 * @Author: zhiqingLi
 * @Description:
 * @Date: Created in 10:40 2024/3/13
 **/
//线程存储
public class BeanContent {
    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();
    public static void setCurrentId(Integer id) {
        threadLocal.set(id);
    }
    public static Integer getCurrentId() {
        return threadLocal.get();
    }
}
